// pages/allNotices/allNotices.js
Page({
  data: {
    tasks: []
  },

  onLoad(options) {
    // 从全局数据中获取通知公告数据
    const tasks = getApp().globalData.tasks || [];
    this.setData({
      tasks
    });
  }
})